<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateApiTesterProjTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('cgkj_apitester_proj', function (Blueprint $table) {
            $table->engine = 'MyISAM'; // InnoDB
            $table->bigIncrements('id');
            $table->bigInteger('user_id')->comment('创建者id');
            $table->string('code',50)->comment('项目英文名,不可重复');
            $table->string('name',100)->comment('项目名称');
            $table->string('logo',255)->comment('项目图标')->nullable();
            $table->text('description')->comment('项目描述')->nullable();
            $table->text('common_param')->comment('公共参数')->nullable();
            $table->text('head_param')->comment('header参数')->nullable();
            $table->string('host',200)->comment('接口域名')->nullable();
            $table->string('basePath')->comment('根目录')->nullable();
            $table->string('status')->comment('状态')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('cgkj_apitester_proj');
    }
}
